#include "redword.h"
#include "ui_redword.h"

extern QString redStr;

RedWord::RedWord(QWidget *parent) :
    QDialog(parent),
    ui(new Ui::RedWord)
{
    ui->setupUi(this);
}

RedWord::~RedWord()
{
    delete ui;
}


QString RedWord::returnString()
{
    return ui->lineEdit->text();
}

void RedWord::OkPush()
{
    redStr = ui->lineEdit->text();
    this->close();
}
